import { reqUpOne } from "@/api/user";

const state = {
    one:[]
}
const mutations = {
    SET_UPONE(state,one){
        state.one = one
    }
}
const actions = {
    async getUpOne({commit},data){
        try{
            const result = await reqUpOne(data)
            commit('SET_UPONE',result)
        }catch(error){
            alert('请求获取失败')

        }
    },
}
const getters = {}

export default {
    state,mutations,actions,getters
}
